package com.yupi.yuaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

/**
 * @className: LangChainAiInvoke
 * @author: xxy-Rain
 * @date: 2025/10/18 13:21
 * @version: 1.0
 * @description: TODO
 */
public class LangChainAiInvoke {
    public static void main(String[] args) {
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(TestApiKey.API_KEY)
                .modelName("qwen-max")
                .build();
        String answer = qwenChatModel.chat("你好，我是喜多川海梦的老公");
        System.out.println(answer);
    }
}
